﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PBOffice.Models;
using PBOffice.DAL;


namespace PBOffice.BLL
{
    public class StaffManager
    {
        public List<Staff> GetAllStaff(string dep, string po, string name)
        {
            return new StaffService().GetAllStaff(dep, po, name);
        }
        public List<Staff> GetAllStaff(string dep, string po, string name, int pageIndex, int pageSize)
        {
            return new StaffService().GetAllStaff(dep, po, name, pageIndex, pageSize);
        }
        public List<Staff> GetNameByPosIdAndDeptId(int deptId, int posId)
        {
            return new StaffService().GetNameByPosIdAndDeptId(deptId, posId);
        }
        public Staff GetStaffByStfId(int stfId)
        {
            return new StaffService().GetStaffByStfId(stfId);
        }
        public void AddStaff(Staff staff)
        {
            new StaffService().AddStaff(staff);
        }
        public void UpdateStaff(Staff staff)
        {
            new StaffService().UpdateStaff(staff);
        }
        public string GetDeptNameByName(string name)
        {
            return new StaffService().GetDeptNameByName(name);
        }
        public List<Staff> GetAllStaffByDeptCodeName(string dep, string code, string name)
        {
            return new StaffService().GetAllStaffByDeptCodeName(dep, code, name);
        }
        public int GetCountByDeptPosName(string dept, string pos, string name)
        {
            return new StaffService().GetCountByDeptPosName(dept, pos, name);
        }
        public List<Staff> GetAllStaffByNameOrDept(string content)
        {
            return new StaffService().GetAllStaffByNameOrDept(content);
        }
    }
}
